package com.hospital.demo.service.impl.libokun;

import com.hospital.demo.mapper.libokun.DrugReturnMapper;
import com.hospital.demo.model.libokun.DrugReturn;
import com.hospital.demo.service.libokun.DrugReturnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DrugReturnServiceImpl implements DrugReturnService {
@Autowired
DrugReturnMapper drugReturnMapper;

    @Override
    public List<DrugReturn> SelectAllReturn() {
        return drugReturnMapper.SelectAllReturn();
    }

    @Override
    public List<DrugReturn> SelectByRId(Integer drrid) {
        return drugReturnMapper.SelectByRId(drrid);
    }

    @Override
    public Integer DelectReturn(Integer drrid) {
        return drugReturnMapper.DelectReturn(drrid);
    }

    @Override
    public List<DrugReturn> InsertReturn(DrugReturn drugreturn) {
        return drugReturnMapper.InsertReturn(drugreturn);
    }
}
